package com.digital.herbarium.Mapper;
import com.digital.herbarium.Entity.Atlas;
import com.digital.herbarium.Entity.Stat;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface AtlasMapper {

    List<Atlas> getAtlasInfo(Atlas atlas);

    void delAtlasInfo(@Param("ids") Long[] id);


    //    添加信息
    void addAtlasInfo(Atlas atlas);
    //编辑信息
    void editAtlasInfo(Atlas atlas);

    //批量新增
    void bachAdd(@Param("list") List<Atlas> list);

    List<Atlas> getAtlasInfoByNumber(Atlas atlas);

    List<Stat> getStatGroupByType();

    Integer getTotal(@Param("queryTime") String queryTime);

    List<Stat> getTotalGroupByDate(@Param("startTime") String startTime,@Param("endTime") String endTime);

    List<Atlas> getTabList(Atlas atlas);

    Integer getTabTotal();

    List<Atlas> getAllType();
}
